package com.jzy.dao;

import com.jzy.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    public void add(OrderSetting orderSetting);

    //更新可预约人数
    public void editNumberByOrderDate(OrderSetting orderSetting);

    //通过日期查询是否已经进行了预约
    public long findCountByOrderDate(Date orderDate);

    //根据月份查询预约
    public List<OrderSetting> getOrderSettingByMonth(Map date);

    //根据预约日期查询预约设置信息
    public OrderSetting findByOrderDate(Date orderDate);

    //更新已预约人数
    public void editReservationsByOrderDate(OrderSetting orderSetting);
}